package service

import (
	"context"

	pb "kratos-layout/api/helloworld/v1"
	"kratos-layout/internal/model"
)

type GreeterService struct {
	pb.UnimplementedGreeterServer

	uc *model.GreeterUsecase
}

// NewGreeterService 创建服务实例
func NewGreeterService(uc *model.GreeterUsecase) *GreeterService {
	return &GreeterService{uc: uc}
}

func (s *GreeterService) CreateHello(ctx context.Context, req *pb.CreateHelloRequest) (*pb.CreateHelloReply, error) {
	return &pb.CreateHelloReply{}, nil
}
func (s *GreeterService) UpdateHello(ctx context.Context, req *pb.UpdateHelloRequest) (*pb.UpdateHelloReply, error) {
	return &pb.UpdateHelloReply{}, nil
}
func (s *GreeterService) DeleteHello(ctx context.Context, req *pb.DeleteHelloRequest) (*pb.DeleteHelloReply, error) {
	return &pb.DeleteHelloReply{}, nil
}
func (s *GreeterService) GetHello(ctx context.Context, req *pb.GetHelloRequest) (*pb.GetHelloReply, error) {
	return &pb.GetHelloReply{}, nil
}
func (s *GreeterService) ListHello(ctx context.Context, req *pb.ListHelloRequest) (*pb.ListHelloReply, error) {
	return &pb.ListHelloReply{}, nil
}
